package com.yangyang.ralearn.common.types;

import java.io.Serializable;

/**
 * 所有物品对象的基类
 * 
 * @author yangyang
 * 
 */
public class JObject implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7671985508879951241L;
	private String type;
	private String name;

	public JObject(String type, String name) {
		this.setType(type);
		this.setName(name);
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		// return "JObject [type=" + type + ", name=" + name + "]";
		return name;
	}
}
